package com.dcd.controller;

import com.dcd.pojo.Different_countries;
import com.dcd.service.Different_countriesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class Different_countriesController {

    @Autowired
    private Different_countriesService different_countriesService;

    /**
     * 查询全部国别
     *
     * @return
     */
    @RequestMapping("/select_all_different_countries")
    public List<Different_countries> select_all_different_countries() {
        return different_countriesService.select_all_different_countries();
    }
}
